﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/PageMaster.Master" Inherits="System.Web.Mvc.ViewPage<PagedList<GrupyzServices.BdAccess.FavoritosViewModel>>" %>
<%@ Import Namespace="Helpers" %>
<%@ Import Namespace="Webdiyer.WebControls.Mvc"%>
<%@ Import Namespace="PreBuildGrupyz.Extensions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Desconto em Grupo - Descontos Favoritos
</asp:Content>


<asp:Content ID="Content3" ContentPlaceHolderID="barralateral" runat="server">
	<!--SideDeal-->
	<!--Parceiros-->
	<% Html.RenderPartial("LateralNegocioConhecido"); %>
	<!--Parceiros-->
	<!--Comerciais-->
	<% Html.RenderPartial("LateralComerciais"); %>
	<!--Comerciais-->
	<!--Facebook-->
	<% Html.RenderPartial("LateralFacebook"); %>
	<!--Facebook-->
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<h5 class="titulo">
		Favoritos</h5>
<div style="padding-bottom: 25px;">
<div class="clear"></div>
	<% 
		if (Model.TotalItemCount > 0)
		{
			foreach (var item in Model)
			{ %>
	
	<div class="last_deals">   
		<div style="margin: 5px 3px 15px 10px;">
				<p style="margin:0px;font-size:7pt;"><%: item.Data.ToShortDateString()%></p>
			<%: Html.ActionLink(item.Nome, "Detalhe", new { id = item.DealId + "-" + item.Descricao }, new { @class = "LinksUltimos" })%>
		</div>
		<div style="width: 130px; float: right; margin-right: 4px;">
		<div class="comprados">
			<span class="quantidade"><%: item.Comprados%></span>
			<span style="margin: 22px;">Comprados</span>
		</div>
		<div class="precos">
			<span class="texto">Preço:</span>
			<span class="valor"><%: item.Preco%> €</span>
			<span class="texto">Valor:</span>
			<span class="valor"><%: item.Valor%> €</span>
			<span class="texto">Poupa:</span>
			<span class="valor"><%: item.Poupa%> €</span>
		</div>
		</div>
		<a href="/Deal/Detalhe/<%: item.DealId + "-" + item.Descricao%>">
			<%: Html.Image(item.Image, new { style = "float: right; height: 110px; margin-right: 6px; width: 155px;" })%>
		</a>

	</div>
	<% }
		}
		else
		{ %>
		<div><h2>Brevemente....</h2></div>
		<%} %>
		<div class="clear"></div>
	<%=Html.Pager(Model, new PagerOptions
{
	PrevPageText = "&lt",
	NextPageText = "&gt;",
	AlwaysShowFirstLastPageNumber = true,
	HorizontalAlign = "right",
	FirstPageText = "&lt;&lt;",
	LastPageText = "&gt;&gt;",
	PageIndexParameterName = "Id"},
			new { style = "width: 100%; text-align: right; float: right; padding-right: 16px; margin-top: 20px;" })%>
	</div>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="PainelBaixo" runat="server">
</asp:Content>
